* {
    margin: 0;
    padding: 0;
}

body {
    max-width: 540px;
    min-width: 320px;
    margin: 0 auto;
    font: normal 14px/1.5 Tahoma, "Lucida Grande", Verdana, "Microsoft Yahei", STXihei, hei;
    color: #000;
    background: #f2f2f2;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    color: #222;
}

ul {
    list-style: none;
}

div {
    box-sizing: border-box;
}

@font-face {
    font-family: 'icomoon';
    src: url('../fonts/icomoon.eot?ehjytq');
    src: url('../fonts/icomoon.eot?ehjytq#iefix') format('embedded-opentype'),
        url('../fonts/icomoon.ttf?ehjytq') format('truetype'),
        url('../fonts/icomoon.woff?ehjytq') format('woff'),
        url('../fonts/icomoon.svg?ehjytq#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* 搜索模块 */
.search-index {
    /* 需要先给父级添加flex属性，开启弹性盒模型 */
    display: flex;
    /* 设置主轴方向 */
    flex-direction: row;
    /* 固定定位 */
    position: fixed;
    top: 0;
    left: 50%;
    /* 适配旧版本的谷歌浏览器 */
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    /* 固定定位的盒子必须有宽度 */
    width: 100%;
    height: 44px;
    min-width: 320px;
    max-width: 540px;
    background-color: #fff;
    border-radius: 8px;
}

/* 搜索框 */
.search {
    flex: 1;
    height: 32px;
    line-height: 28.4px;
    border: 1.8px solid #0086f6;
    border-radius: 16px;
    margin: 6px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

.search span {
    color: #999;
    margin-left: 3px;
}

.search::before {
    content: "\e986";
    font-family: 'icomoon';
    width: 20px;
    height: 23px;
    margin-left: 12px;
}

/* 用户 */
.user {
    width: 44px;
    height: 44px;
    text-align: center;
    color: #2eaae0;
    font-size: 12px;
}

/* 伪元素选择器（用于用户头像）*/
.user::before {
    content: "";
    display: block;
    width: 23px;
    height: 23px;
    background: url(../images/sprite.png) no-repeat -59px -194px;
    /* 精灵图缩放为二倍图 */
    background-size: 104px auto;
    margin: 6px auto 0;
}

/* 焦点图模块 */
.focus {
    border-radius: 10px;
    margin-top: 46px;
    overflow: hidden;
}

.focus img {
    width: 100%;
}

/* 局部导航栏 */
.local-nav {
    display: flex;
    height: 64px;
    border-radius: 8px;
    background-color: #fff;
    margin: 3px auto;
}

.local-nav li {
    flex: 1;
}

.local-nav a {
    display: flex;
    flex-direction: column;
    /* 侧轴居中对齐 */
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
}

/* 属性选择器 */
.local-nav li [class^='local-nav-icon'] {
    width: 32px;
    height: 32px;
    background-color: pink;
    background: url(../images/localnav_bg.png) no-repeat 0 0;
    background-size: 32px auto;
}

.local-nav li .local-nav-icon-icon2 {
    background-position: 0 -32px;
}

.local-nav li .local-nav-icon-icon3 {
    background-position: 0 -64px;
}

.local-nav li .local-nav-icon-icon4 {
    background-position: 0 -96px;
}

.local-nav li .local-nav-icon-icon5 {
    background-position: 0 -128px;
}

/* nav导航栏模块 */
nav {
    overflow: hidden;
    margin: 3px auto;
    border-radius: 8px;
}

.nav-common {
    display: flex;
    height: 88px;
    margin: 3px 0;
}

.nav-common:nth-child(1) {
    /* 背景颜色线性渐变 */
    background: -webkit-linear-gradient(left, #fa5a55, #fa994d);
}

.nav-common:nth-child(2) {
    /* 背景颜色线性渐变 */
    background: -webkit-linear-gradient(left, #4b90ed, #53bced);
}

.nav-common:nth-child(3) {
    /* 背景颜色线性渐变 */
    background: -webkit-linear-gradient(left, #34c2a9, #6cd559);
}

.nav-items {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nav-items:nth-child(2) {
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
}

.nav-items a {
    flex: 1;
    text-align: center;
    line-height: 44px;
    color: #fff;
    font-size: 14px;
    text-shadow: 1px 1px rgba(0, 0, 0, .2);
}

.nav-items a:nth-child(1) {
    border-bottom: 1px solid #fff;
}

.nav-items:nth-child(1) a {
    border: 0;
    background: url(../images/hotel.png) no-repeat center bottom;
    background-size: 121px auto;
}

/* subnav-entry侧导航栏入口模块 */
.subnav-entry {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: 8px;
    padding: 5px 0;
}

.subnav-entry li {
    flex: 20%;
}

.subnav-entry a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}

.subnav-entry li [class^="subnav-entry-icon"] {
    width: 28px;
    height: 28px;
    background: url(../images/subnav-bg.png) no-repeat 0 0;
    background-size: 28px auto;
    margin-top: 4px;
}

.subnav-entry li .subnav-entry-icon-icon2 {
    background-position: 0 -28px;
}

.subnav-entry li .subnav-entry-icon-icon3 {
    background-position: 0 -62px;
}

.subnav-entry li .subnav-entry-icon-icon4 {
    background-position: 0 -98px;
}

.subnav-entry li .subnav-entry-icon-icon5 {
    background-position: 0 -130px;
}

.subnav-entry li .subnav-entry-icon-icon6 {
    background-position: 5px -163px;
}

.subnav-entry li .subnav-entry-icon-icon7 {
    background-position: 5px -163px;
}

.subnav-entry li .subnav-entry-icon-icon8 {
    background-position: 0 -196px;
}

.subnav-entry li .subnav-entry-icon-icon9 {
    background-position: 0 -227px;
}

.subnav-entry li .subnav-entry-icon-icon10 {
    background-position: 0 -256px;
}

/* 销售盒子模块 */
.sales-box {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #eee;
    background-color: #fff;
    margin: 4px auto;
    height: 500px;
}

.sales-hd {
    position: relative;
    height: 44px;
    border-bottom: 1px solid #ccc;
}

.sales-hd h2 {
    position: relative;
    text-indent: -999px;
    overflow: hidden;
}

.sales-hd h2::after {
    position: absolute;
    top: 14px;
    left: 20px;
    width: 79px;
    height: 15px;
    content: "";
    background: url(../images/hot.png) no-repeat 0 -20px;
    background-size: 79px auto;
}

.sales-hd a {
    position: absolute;
    top: 10px;
    right: 5px;
    border-radius: 15px;
    background: -webkit-linear-gradient(left, #ff506c, #ff6bc6);
    padding: 3px 20px 3px 10px;
    color: #fff;
    font-size: 12px;
}

.sales-hd a::after {
    position: absolute;
    top: 9px;
    right: 8px;
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}

.row {
    display: flex;
}

.row a {
    flex: 1;
    border-bottom: 1px solid #eee;
}

.row a:nth-child(1) {
    border-right: 1px solid #eee;
}

.row a img {
    width: 100%;
}

/* 联系方式模块 */
.contact-info {
    position: fixed;
    bottom: 0;
    width: 540px;
    height: 49px;
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 -5px 15px 0 rgb(0 0 0 / 5%);
}

.contact-info a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info [class^="contact-info-icon"] {
    width: 32px;
    height: 32px;
    background: url(../images/tabbar.png) no-repeat 0 0;
    background-size: 32px auto;
}

.contact-info .contact-info-icon-icon2 {
    background-position: 0 -32px;
}

.contact-info .contact-info-icon-icon3 {
    background-position: 0 -64px;
}

.contact-info .contact-info-icon-icon4 {
    background-position: 0 -96px;
}